package com.bs.common.exception;

import lombok.Data;

/**
 * @author bingshao
 * @date 2023/5/10
 **/
@Data
public class BizException extends RuntimeException{

    private Integer code;

    private String message;

    public BizException(PromptMessage errorMessage) {
        this.message = errorMessage.getMessage();
        this.code = errorMessage.getCode();
    }

}
